﻿@using DevExpress.Web.ASPxClasses
@using DevExpress.Web.ASPxMenu
@using Dogshow.Web.Models
@using DevExpress.Web.Mvc.UI
@model Korisnik
@Html.DevExpress().HyperLink(linkSettings =>
{
    linkSettings.Name = "User";
    linkSettings.Properties.Text = Model.ImeIPrezime + " (" + Model.KorisnickoIme + ")";
}).GetHtml()
@Html.DevExpress().PopupMenu(popupSettings =>
                                       {
                                           popupSettings.Name = "userOptions";
                                           popupSettings.PopupAction = PopupAction.LeftMouseClick;
                                           popupSettings.PopupElementID = "User";
                                           popupSettings.PopupHorizontalAlign = PopupHorizontalAlign.LeftSides;
                                           popupSettings.PopupVerticalAlign = PopupVerticalAlign.Below;
                                           popupSettings.PopupVerticalOffset = 4;
                                           popupSettings.Items.Add("Moj nalog").NavigateUrl = @Url.Action("Detalji", "Korisnici", new {korisnickoIme = Model.KorisnickoIme});
                                           popupSettings.Items.Add("Odjavi me").NavigateUrl = @Url.Action("OdjaviMe", "Home", new {Area = ""}, null);
                                           popupSettings.DisappearAfter = 500;
                                       }).GetHtml()
